package com.changgou.web.gateway.filter;



public class UrlFilter {

    public static String filterPath = "/api/oauth/login,/api/oauth/toLogin";

    public static boolean hasAuthorize(String url){

        String[] split = filterPath.replace("**", "").split(",");

        for (String value : split) {

            if (url.startsWith(value)){
                return true;
            }
        }

        return false;
    }
}
